#!/bin/sh
while read LINE
do
    if [ -f $LINE ]; then
        echo $LINE >> ~/found
    else
        echo $LINE >> ~/not_found
    fi
    echo $LINE
done
